package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckItem;

import java.util.List;

/**
 * @author zhouwei
 * @date 2019-12-29 20:02
 */
public interface CheckItemDao {
    //新增检查项
    public void add(CheckItem checkItem);

    //分页查询
    public Page<CheckItem> findByCondition(QueryPageBean queryPageBean);

    //删除检查项
    public void delete(Integer id);

    //查看是否存在关联表
    public Integer checkItemgroupByid(Integer id);

    //查找单个检查项
    public CheckItem findById(Integer id);

    //编辑检查项
    public void edit(CheckItem checkItem);

    //校验code
    public List<Integer> checkItemByCode(CheckItem checkItem);

    //校验name
    public List<Integer> checkItemByName(CheckItem checkItem);

    //查询所有检查项
    public List<CheckItem> findAll();

    //查询套餐数据
    public List<CheckItem> findByCheckgroupId(int id);
}